import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import router from '@/router/index'
import 
{Container,Header,Main,Aside,Menu,Submenu,MenuItem,MenuItemGroup,Button,
  Dropdown,DropdownItem,DropdownMenu,Card,Row,Col,Calendar,Breadcrumb,
  BreadcrumbItem,Dialog,Form,FormItem,Switch,DatePicker,Input,Select,Option,
  Pagination,Table,TableColumn,Descriptions,DescriptionsItem,Tag,PageHeader,Skeleton,
  Message,MessageBox 
} 
from 'element-ui'

import store from '@/store/store'

import http from 'axios'

// import echarts from '@/echarts/echarts'

Vue.config.productionTip = false
Vue.use(VueRouter)

// element ui 组件使用
Vue.use(Container)
Vue.use(Header)
Vue.use(Main)
Vue.use(Aside)
Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItem)
Vue.use(MenuItemGroup)
Vue.use(Button)
Vue.use(Dropdown)
Vue.use(DropdownItem)
Vue.use(DropdownMenu)
Vue.use(Card)
Vue.use(Row)
Vue.use(Col)
Vue.use(Calendar)
Vue.use(Breadcrumb)
Vue.use(BreadcrumbItem)
Vue.use(Dialog)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Switch)
Vue.use(DatePicker)
Vue.use(Input)
Vue.use(Select)
Vue.use(Option)
Vue.use(Pagination)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Descriptions)
Vue.use(DescriptionsItem)
Vue.use(Tag)
Vue.use(PageHeader)
Vue.use(Skeleton)
Vue.component(Message.name, Message)
Vue.component(MessageBox.name, MessageBox)



//封装进入原型 
Vue.prototype.$http = http
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm
// Vue.prototype.$echarts = echarts

new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate() {
		Vue.prototype.$bus = this
	},
}).$mount('#app')
